package edu.xaut.bookingsys.entity;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
public enum EnumWatching {
    // 关注的值班类型，正常、假期、上级安排任务、个人关注
    Norm(1, "正常课程"),
    Holiday(2, "假期值班"),
    Task(3, "临时任务"),
    Personal(4, "个人关注");
    @EnumValue
    final private int id;
    @JsonValue
    final private String description;

    EnumWatching(int id, String desc) {
        this.id = id;
        description = desc;
    }

}